// 订单管理模块路由
import Order from '@/pages/order'
import OrderList from '@/pages/order/list'
import OrderWaitDelivery from '@/pages/order/wait-delivery'
import OrderDeliveryed from '@/pages/order/deliveryed'
import OrderWaitReceiving from '@/pages/order/wait-receiving'
import OrderReceived from '@/pages/order/received'
import OrderClosed from '@/pages/order/closed'
const orderRoutes = {
  name: 'order',
  path: 'order',
  component: Order,
  redirect: 'order/list',
  children: [{
      path: 'list',
      component: OrderList
    },
    {
      path: 'wait-delivery',
      component: OrderWaitDelivery
    }, {
      path: 'deliveryed',
      component: OrderDeliveryed
    }, {
      path: 'wait-receiving',
      component: OrderWaitReceiving
    }, {
      path: 'received',
      component: OrderReceived
    }, {
      path: 'closed',
      component: OrderClosed
    }
  ]
}

export default orderRoutes
